﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SinglePage.aspx.cs" Inherits="SinglePage" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
  <ext:ResourceManager ID="ResourceManager1" runat="server" DirectMethodNamespace="CompanyX">
    </ext:ResourceManager>
     <ext:Window ID="Window1"  runat="server" Modal="True" Closable="False" Layout="Fit" Hidden="False" AutoShow="False"   Height="410" Icon="Application"
        Title="跟进详细" Width="800">
        <Items>
             <ext:FormPanel ID="FormPanel1" 
            runat="server" 
            BodyStyle="padding:5px 5px 0;"
            Width="600"
            Layout="HBoxLayout">
            
            <FieldDefaults LabelAlign="Top" MsgTarget="Side" />

            <Defaults>
                <ext:Parameter Name="Border" Value="false" />
                <ext:Parameter Name="Flex" Value="1" />
                <ext:Parameter Name="Layout" Value="anchor" />
            </Defaults>

            <Items> 
                <ext:Panel ID="Panel1" runat="server">
                    <Items>
                        
                        <ext:TextField ID="CTMID" runat="server" FieldLabel="號碼" Disabled="True" AnchorHorizontal="98%" />
                        <ext:TextField ID="CTMCompany" runat="server" FieldLabel="公司" AnchorHorizontal="98%" />
                        
                        <ext:TextField ID="CTMUsername" runat="server" FieldLabel="联络人" AnchorHorizontal="98%"  />
                        <ext:TextField ID="CTMPhone" runat="server" FieldLabel="电话" AnchorHorizontal="98%" />
                        <ext:TextField ID="CTMFax" runat="server" FieldLabel="传真" AnchorHorizontal="98%" />
                        <ext:TextField ID="CTMEmail" runat="server" FieldLabel="E-mail" AnchorHorizontal="98%" />
                        <ext:TextField ID="CTMAddress" runat="server" FieldLabel="地址" AnchorHorizontal="98%" />
                       
                    </Items>
                </ext:Panel>

                <ext:Panel ID="Panel2" runat="server">
                    <Items>
                        <ext:ComboBox Hidden="True" ID="BigClassID" runat="server" 
                            LabelWidth="50"
                            FieldLabel="大类"
                            DisplayField="ClassName"
                            ValueField="ClassID"
                            Editable="False"
                            AnchorHorizontal="98%"
                            >
                            <Store>
                                <ext:Store ID="StoreBC1" runat="server">
                                    <Model>
                                        <ext:Model ID="Model1" runat="server">
                                            <Fields>
                                                <ext:ModelField Name="ClassID"></ext:ModelField>
                                                <ext:ModelField Name="ClassName"></ext:ModelField>
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store> 
                            <Listeners>
                                <Select Handler="#{StoreSC1}.reload();"></Select> 
                            </Listeners>
                        </ext:ComboBox>
                        <ext:ComboBox Hidden="True" ID="SmallClassID" runat="server"
                            LabelWidth="50"
                            FieldLabel="小类"
                            DisplayField="ClassName"
                            ValueField="ClassID"
                            AnchorHorizontal="100%"
                            Editable="False"
                            >
                            <Store>
                                <ext:Store ID="StoreSC1"  runat="server">
                                    <Model>
                                        <ext:Model ID="Model2"  runat="server">
                                            <Fields>
                                                <ext:ModelField Name="ClassID"></ext:ModelField>
                                                <ext:ModelField Name="ClassName"></ext:ModelField>
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                </ext:Store>
                            </Store> 
                        </ext:ComboBox>
                         
                        <ext:DateField runat="server" ID="CTMNextContectTime" ShowToday="False" FieldLabel="提醒日期" AnchorHorizontal="98%"></ext:DateField>
                        <ext:ComboBox runat="server" Disabled="True" Hidden="True" ID="CTMLastStatus" Editable="False" AnchorHorizontal="98%" FieldLabel="本次情况">
                            <Items>
                                <ext:ListItem Text="沒接" Value="1"/>
                                <ext:ListItem Text="不要" Value="2"/>
                                <ext:ListItem Text="跟進" Value="3"/>
                                <ext:ListItem Text="未处理" Value="4"/>
                                <ext:ListItem Text="確實" Value="5"/>
                            </Items>
                            <SelectedItems>
                                <ext:ListItem Value="3"/>
                            </SelectedItems>
                        </ext:ComboBox>
                        <ext:TextArea ID="CTMLastRemarks" AnchorHorizontal="98%" Rows="7" runat="server" FieldLabel="內容"></ext:TextArea>
                        
                    </Items>
                </ext:Panel> 
                
            </Items>

            <Buttons>
                <ext:Button ID="Button4" Padding="5" runat="server" Icon="ApplicationSideBoxes" Text="確實" >
                    <DirectEvents>
                        <Click OnEvent="SaveGenJin">
                              <ExtraParams>
                                <ext:Parameter Name="s" Value="5" />
                              </ExtraParams>
                        </Click>
                    </DirectEvents>
                </ext:Button> 
                <ext:Button ID="Button2" Padding="5" runat="server" Icon="ApplicationLightning" Text="跟進" >
                    <DirectEvents>
                        <Click OnEvent="SaveGenJin">
                              <ExtraParams>
                                <ext:Parameter Name="s" Value="3" />
                              </ExtraParams>
                        </Click>
                    </DirectEvents>
                </ext:Button> 
                <ext:Button ID="Button3" Hidden="True" Padding="5" runat="server" Icon="ApplicationCascade" Text="未处理" >
                    <DirectEvents>
                        <Click OnEvent="SaveGenJin">
                              <ExtraParams>
                                <ext:Parameter Name="s" Value="4" />
                              </ExtraParams>
                        </Click>
                    </DirectEvents>
                </ext:Button> 
                <ext:Button ID="Button7" Padding="5" runat="server" Icon="ApplicationError" Text="沒接" >
                    <DirectEvents>
                        <Click OnEvent="SaveGenJin">
                              <ExtraParams>
                                <ext:Parameter Name="s" Value="1" />
                              </ExtraParams>
                        </Click>
                    </DirectEvents>
                </ext:Button> 
                <ext:Button ID="Button1" Padding="5" runat="server" Icon="ApplicationDelete"   Text="不要" >
                    <DirectEvents>
                        <Click OnEvent="SaveGenJin">
                              <ExtraParams>
                                <ext:Parameter Name="s" Value="2" />
                              </ExtraParams>
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:FormPanel>
        </Items>
        </ext:Window>
    </form>
</body>
</html>
